blktap2: add blktap2 device class and device controller
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 1 Jul 2009 09:53:15 +0000 (10:53 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 1 Jul 2009 09:53:15 +0000 (10:53 +0100)
commit286423408d7a6b4bd427a2b3a60474e6bce95f66
tree22e27e2290c8b8d15e76b2e148bb620ea35b2dc2
parent756b7b81f963dfc25d5ced1f54b068a8cc6df14e
blktap2: add blktap2 device class and device controller

blktap2 devices must be handled differently than blktap2
devices. blktap2 devices require a sysfs write to close the underlying
device, as well as extra sysfs writes when the domU is
paused/unpaused. The differences between blktap1 and blktap2 are great
enough to warrant the creation of a new device class, 'tap2', and
device controller for blktap2 devices.

  * add a new device controller (Blktap2Controller) and device class
    (tap2) for blktap2 devices
  * move blktap2 specific code from DevController to Blktap2Controller
  * if possible, check xenstore to determine block device class
  * use vmpath (/vm/<uuid>/) when releasing devices
  * modify linux hotplug cleanup script to handle blktap2 device
    removal

Signed-off-by: Ryan O'Connor <rjo@cs.ubc.ca>
tools/hotplug/Linux/xen-hotplug-cleanup
tools/python/xen/xend/XendConfig.py
tools/python/xen/xend/XendDevices.py
tools/python/xen/xend/XendDomainInfo.py
tools/python/xen/xend/server/BlktapController.py
tools/python/xen/xend/server/DevController.py
tools/python/xen/xm/create.py
tools/python/xen/xm/main.py